<?php

namespace App\Http\Requests;

class RoundStaticProfitRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'amount'=>'required|numeric'
        ];
    }

    public function messages()
    {
        return [
            'amount.required'=>['error_code'=>'F002002','message'=>'金额不能为空！'],
            'amount.numeric'=>['error_code'=>'F002002','message'=>'金额必须是数字！'],
        ];
    }
}
